#include "ogl/gut/RenderTargetDesc1.h"
#include "ogl/gut/Dictionary.h"
#include "imgui/Editor.h"

using namespace Ogl::Gut;

template <>
bool ImGui::Editor::Edit(const std::string &label, Ogl::Gut::RenderTargetDesc1 &inst)
{
    int index = 0;

    if (TreeNode(label.c_str(), inst.m_BitFlag, index++))
    {
        EditInst<Ogl::Gut::Image::HD>("image data", inst.m_ImageHD);
        for (auto &it : inst.m_Images)
        {
            EditInst<Ogl::Gut::Image>("image", it);
        }
        TreePop();
    }
    return false;
}